package com.cms.admin.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class StuffSortExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StuffSortExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRecidIsNull() {
            addCriterion("RecID is null");
            return (Criteria) this;
        }

        public Criteria andRecidIsNotNull() {
            addCriterion("RecID is not null");
            return (Criteria) this;
        }

        public Criteria andRecidEqualTo(Long value) {
            addCriterion("RecID =", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotEqualTo(Long value) {
            addCriterion("RecID <>", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidGreaterThan(Long value) {
            addCriterion("RecID >", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidGreaterThanOrEqualTo(Long value) {
            addCriterion("RecID >=", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidLessThan(Long value) {
            addCriterion("RecID <", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidLessThanOrEqualTo(Long value) {
            addCriterion("RecID <=", value, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidIn(List<Long> values) {
            addCriterion("RecID in", values, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotIn(List<Long> values) {
            addCriterion("RecID not in", values, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidBetween(Long value1, Long value2) {
            addCriterion("RecID between", value1, value2, "recid");
            return (Criteria) this;
        }

        public Criteria andRecidNotBetween(Long value1, Long value2) {
            addCriterion("RecID not between", value1, value2, "recid");
            return (Criteria) this;
        }

        public Criteria andOwneridIsNull() {
            addCriterion("OwnerID is null");
            return (Criteria) this;
        }

        public Criteria andOwneridIsNotNull() {
            addCriterion("OwnerID is not null");
            return (Criteria) this;
        }

        public Criteria andOwneridEqualTo(Long value) {
            addCriterion("OwnerID =", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotEqualTo(Long value) {
            addCriterion("OwnerID <>", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridGreaterThan(Long value) {
            addCriterion("OwnerID >", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridGreaterThanOrEqualTo(Long value) {
            addCriterion("OwnerID >=", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridLessThan(Long value) {
            addCriterion("OwnerID <", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridLessThanOrEqualTo(Long value) {
            addCriterion("OwnerID <=", value, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridIn(List<Long> values) {
            addCriterion("OwnerID in", values, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotIn(List<Long> values) {
            addCriterion("OwnerID not in", values, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridBetween(Long value1, Long value2) {
            addCriterion("OwnerID between", value1, value2, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOwneridNotBetween(Long value1, Long value2) {
            addCriterion("OwnerID not between", value1, value2, "ownerid");
            return (Criteria) this;
        }

        public Criteria andOrdercountIsNull() {
            addCriterion("orderCount is null");
            return (Criteria) this;
        }

        public Criteria andOrdercountIsNotNull() {
            addCriterion("orderCount is not null");
            return (Criteria) this;
        }

        public Criteria andOrdercountEqualTo(Integer value) {
            addCriterion("orderCount =", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountNotEqualTo(Integer value) {
            addCriterion("orderCount <>", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountGreaterThan(Integer value) {
            addCriterion("orderCount >", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountGreaterThanOrEqualTo(Integer value) {
            addCriterion("orderCount >=", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountLessThan(Integer value) {
            addCriterion("orderCount <", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountLessThanOrEqualTo(Integer value) {
            addCriterion("orderCount <=", value, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountIn(List<Integer> values) {
            addCriterion("orderCount in", values, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountNotIn(List<Integer> values) {
            addCriterion("orderCount not in", values, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountBetween(Integer value1, Integer value2) {
            addCriterion("orderCount between", value1, value2, "ordercount");
            return (Criteria) this;
        }

        public Criteria andOrdercountNotBetween(Integer value1, Integer value2) {
            addCriterion("orderCount not between", value1, value2, "ordercount");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreIsNull() {
            addCriterion("evaluateScore is null");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreIsNotNull() {
            addCriterion("evaluateScore is not null");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreEqualTo(BigDecimal value) {
            addCriterion("evaluateScore =", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreNotEqualTo(BigDecimal value) {
            addCriterion("evaluateScore <>", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreGreaterThan(BigDecimal value) {
            addCriterion("evaluateScore >", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("evaluateScore >=", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreLessThan(BigDecimal value) {
            addCriterion("evaluateScore <", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreLessThanOrEqualTo(BigDecimal value) {
            addCriterion("evaluateScore <=", value, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreIn(List<BigDecimal> values) {
            addCriterion("evaluateScore in", values, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreNotIn(List<BigDecimal> values) {
            addCriterion("evaluateScore not in", values, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("evaluateScore between", value1, value2, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andEvaluatescoreNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("evaluateScore not between", value1, value2, "evaluatescore");
            return (Criteria) this;
        }

        public Criteria andCommentIsNull() {
            addCriterion("comment is null");
            return (Criteria) this;
        }

        public Criteria andCommentIsNotNull() {
            addCriterion("comment is not null");
            return (Criteria) this;
        }

        public Criteria andCommentEqualTo(String value) {
            addCriterion("comment =", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotEqualTo(String value) {
            addCriterion("comment <>", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThan(String value) {
            addCriterion("comment >", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThanOrEqualTo(String value) {
            addCriterion("comment >=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThan(String value) {
            addCriterion("comment <", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThanOrEqualTo(String value) {
            addCriterion("comment <=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLike(String value) {
            addCriterion("comment like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotLike(String value) {
            addCriterion("comment not like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentIn(List<String> values) {
            addCriterion("comment in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotIn(List<String> values) {
            addCriterion("comment not in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentBetween(String value1, String value2) {
            addCriterion("comment between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotBetween(String value1, String value2) {
            addCriterion("comment not between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andReceivespeedIsNull() {
            addCriterion("receiveSpeed is null");
            return (Criteria) this;
        }

        public Criteria andReceivespeedIsNotNull() {
            addCriterion("receiveSpeed is not null");
            return (Criteria) this;
        }

        public Criteria andReceivespeedEqualTo(BigDecimal value) {
            addCriterion("receiveSpeed =", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedNotEqualTo(BigDecimal value) {
            addCriterion("receiveSpeed <>", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedGreaterThan(BigDecimal value) {
            addCriterion("receiveSpeed >", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("receiveSpeed >=", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedLessThan(BigDecimal value) {
            addCriterion("receiveSpeed <", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedLessThanOrEqualTo(BigDecimal value) {
            addCriterion("receiveSpeed <=", value, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedIn(List<BigDecimal> values) {
            addCriterion("receiveSpeed in", values, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedNotIn(List<BigDecimal> values) {
            addCriterion("receiveSpeed not in", values, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("receiveSpeed between", value1, value2, "receivespeed");
            return (Criteria) this;
        }

        public Criteria andReceivespeedNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("receiveSpeed not between", value1, value2, "receivespeed");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}